//
//  GYFinishRegisterVC.m
//  GYDemo
//
//  Created by Mrzhang on 2018/3/26.
//  Copyright © 2018年 mac. All rights reserved.
//

//
//                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
//            __.'              ~.   .~              `.__
//          .'//                  \./                  \\`.
//        .'//                     |                     \\`.
//      .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
//    .'//.-"                 `-.  |  .-'                 "-.\\`.
//  .'//______.============-..   \ | /   ..-============.______\\`.
//.'______________________________\|/______________________________`.
//
//

#import "GYFinishRegisterVC.h"
#import "Head.h"
#import "GYMainTab.h"

@interface GYFinishRegisterVC ()
@property(nonatomic,strong)UIButton* homeBtn;
@property(nonatomic,strong)UIButton* auBtn;
@property(nonatomic,strong)UIImageView* topImageView;
@property(nonatomic,strong)UILabel* markLab;

@end

@implementation GYFinishRegisterVC
#pragma mark - getter and setter

-(UIButton *)homeBtn
{
    if (!_homeBtn) {
        _homeBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        _homeBtn.frame=WFCGRectMake(195, 334, 140, 40);
        _homeBtn.backgroundColor=Main_Color_Red;
        [_homeBtn setTitle:@"去首页" forState:UIControlStateNormal];
        _homeBtn.titleLabel.font=SYSTEMFONT(18);
        [_homeBtn addTarget:self action:@selector(gotoRootVC:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _homeBtn;
}
-(UIButton *)auBtn
{
    if (!_auBtn)
    {
        _auBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        _auBtn.frame=WFCGRectMake(40, 334, 140, 40);
        _auBtn.backgroundColor=[UIColor whiteColor];
        [_auBtn setTitle:@"去认证" forState:UIControlStateNormal];
        [_auBtn setTitleColor:Main_Color_Red forState:UIControlStateNormal];
        [WFFunctions WFUIaddbordertoView:_auBtn radius:2 width:0.5 color:Main_Color_Red];
        _auBtn.titleLabel.font=SYSTEMFONT(18);
         [_auBtn addTarget:self action:@selector(gotoAuVC:) forControlEvents:UIControlEventTouchUpInside];
    }
    return _auBtn;
}
-(UIImageView *)topImageView{
    
    if (!_topImageView)
    {
        _topImageView=[[UIImageView alloc] init];
        _topImageView.image=[UIImage imageNamed:@"pthy"];
        _topImageView.frame=WFCGRectMake(148, 117, _topImageView.image.size.width, _topImageView.image.size.height);
        
    }
    return _topImageView;
}

-(UILabel *)markLab
{
    if (!_markLab) {
        _markLab=[[UILabel alloc] init];
        _markLab.textColor=RGBACOLOR(74, 74, 74, 1);
        _markLab.font=SYSTEMFONT(18);
        _markLab.textAlignment=NSTextAlignmentCenter;
        _markLab.numberOfLines=2;
        _markLab.frame=WFCGRectMake(0, 253, 375, 60);
    }
    return _markLab;
}
#pragma mark - event
-(void)gotoRootVC:(id)sender
{
    [[UIApplication sharedApplication] delegate].window.rootViewController=[GCPresenter shareInterface].mainVC;
}
-(void)gotoAuVC:(id)sender
{


}
#pragma mark - method

-(void)viewModelBand
{
    
//    @WeakSelf;
//    GCBaseObservationModel* buyOber=[GCBaseObservationModel new];
//    buyOber.keyPath=@"storageUserInfoModel";
//    buyOber.observation=self.StorageUserViewModel;
//    buyOber.handler = ^(NSString *keyPath) {
//        [selfp.baseTable reloadData];
//    };
//    [self registObservation:buyOber];
    
}

#pragma mark - life
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavgationTheme:2];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    [self.view addSubview:self.topImageView];
    [self.view addSubview:self.markLab];
    [self.view addSubview:self.homeBtn];
    [self.view addSubview:self.auBtn];
    
    
    if ([[GYLoginViewModel shareInterface] roleType]==1)
    {
        self.markLab.text=@"您已注册为普通会员\n如果要进行交易请进行认证册";
    }
    if ([[GYLoginViewModel shareInterface] roleType]==2)
    {
        self.markLab.text=@"您已注册为仓储会员\n如果要进行交易请进行认证册";
    }
    if ([[GYLoginViewModel shareInterface] roleType]==3)
    {
        self.markLab.text=@"您已注册为物流会员\n如果要进行交易请进行认证册";
    }
    
    // Do any additional setup after loading the view.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
#pragma mark - delegate
@end


/*
 11111111111111111111111111111111111111001111111111111111111111111
 11111111111111111111111111111111111100011111111111111111111111111
 11111111111111111111111111111111100001111111111111111111111111111
 11111111111111111111111111111110000111111111111111111111111111111
 11111111111111111111111111111000000111111111111111111111111111111
 11111111111111111111111111100000011110001100000000000000011111111
 11111111111111111100000000000000000000000000000000011111111111111
 11111111111111110111000000000000000000000000000011111111111111111
 11111111111111111111111000000000000000000000000000000000111111111
 11111111111111111110000000000000000000000000000000111111111111111
 11111111111111111100011100000000000000000000000000000111111111111
 11111111111111100000110000000000011000000000000000000011111111111
 11111111111111000000000000000100111100000000000001100000111111111
 11111111110000000000000000001110111110000000000000111000011111111
 11111111000000000000000000011111111100000000000000011110001111111
 11111110000000011111111111111111111100000000000000001111100111111
 11111111000001111111111111111111110000000000000000001111111111111
 11111111110111111111111111111100000000000000000000000111111111111
 11111111111111110000000000000000000000000000000000000111111111111
 11111111111111111100000000000000000000000000001100000111111111111
 11111111111111000000000000000000000000000000111100000111111111111
 11111111111000000000000000000000000000000001111110000111111111111
 11111111100000000000000000000000000000001111111110000111111111111
 11111110000000000000000000000000000000111111111110000111111111111
 11111100000000000000000001110000001111111111111110001111111111111
 11111000000000000000011111111111111111111111111110011111111111111
 11110000000000000001111111111111111100111111111111111111111111111
 11100000000000000011111111111111111111100001111111111111111111111
 11100000000001000111111111111111111111111000001111111111111111111
 11000000000001100111111111111111111111111110000000111111111111111
 11000000000000111011111111111100011111000011100000001111111111111
 11000000000000011111111111111111000111110000000000000011111111111
 11000000000000000011111111111111000000000000000000000000111111111
 11001000000000000000001111111110000000000000000000000000001111111
 11100110000000000001111111110000000000000000111000000000000111111
 11110110000000000000000000000000000000000111111111110000000011111
 11111110000000000000000000000000000000001111111111111100000001111
 11111110000010000000000000000001100000000111011111111110000001111
 11111111000111110000000000000111110000000000111111111110110000111
 11111110001111111100010000000001111100000111111111111111110000111
 11111110001111111111111110000000111111100000000111111111111000111
 11111111001111111111111111111000000111111111111111111111111100011
 11111111101111111111111111111110000111111111111111111111111001111
 11111111111111111111111111111110001111111111111111111111100111111
 11111111111111111111111111111111001111111111111111111111001111111
 11111111111111111111111111111111100111111111111111111111111111111
 11111111111111111111111111111111110111111111111111111111111111111
 
 
 */
